﻿using IDotNet.MapLibs.BMap;
using IDotNet.MapLibs.BMap.Model;
using IDotNet.MapLibs.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDotNet;

namespace TestConsole
{
    class TestBMap
    {
        public static void Test()
        {
            TestPlaceSuggestion();
        }

        static void TestGeocoding()
        {
            var s = new BMapGeocoding();
            var d = s.Geocoder(new BMapGeocoderRequestModel
            {
                address = "中央大厨房",
                //                address = "广东深圳市龙岗区平湖街道深圳市龙岗区平湖海吉星5栋4楼中央大厨房1",
                city = "深圳"
            });
            Console.WriteLine(d.ToJson());
        }

        static void TestPlaceSuggestion()
        {
            var s = new BMapPlace();
            var d = s.Suggestion(new BMapPlaceSuggestionReqModel()
            {
                Query = "坂田",
                Region = "深圳"
            });
            Console.WriteLine(d.ToJson());
        }

    }
}
